package models

import (
	"github.com/astaxie/beego/orm"
)

type UserWxmp struct {
	Id       int    `orm:"column(id);auto"`
	UserId   string `orm:"column(user_id);size(8)" description:"用户ID"`
	OpenId   string `orm:"column(open_id);size(128)" description:"微信OpenID"`
	UnionId  string `orm:"column(union_id);size(128)" description:"微信开放平台帐号"`
	Country  string `orm:"column(country);size(20)" description:"国家"`
	Province string `orm:"column(province);size(40)" description:"省"`
	City     string `orm:"column(city);size(40)" description:"市"`
}

func (t *UserWxmp) TableName() string {
	return "user_wxmp"
}

func init() {
	orm.RegisterModel(new(UserWxmp))
}